package app.exception;


public class BaseException {
    private String ErrMessage;
    private boolean isExit;
    private int line;
    public BaseException(String message , int line , boolean exit) {
        this.ErrMessage = message;
        this.isExit = exit;
        this.line = line;
    }
    public String getErrMessage() {
        return this.ErrMessage;
    }
    public void PrintErrorMessage() {
        System.err.println();
        System.err.println(ErrMessage);
        System.err.println();
        if (this.isExit) {
            System.exit(1);
        }
    }
}
